package com.gxa.insurance.mapper;

import com.gxa.insurance.pojo.Driver;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface DriverMapper {
    List<Driver> selectAllEmail();

    Integer insert(Driver driver);

    List<Driver> selectByPage(Integer offset, Integer size);

    Integer selectCount();

    List<Driver> selectlikeName(Map map);

    List<Driver> selectAll();

    Integer selectLikeCount(Driver driver);

    Driver selectByPhoneAndPwd(@Param("phone") String phone , @Param("pwd") String pwd);

    Integer update(Integer id, Integer status);

    Driver selectDriverByName(String driver);

    Integer updatePwd(@Param("phone") String phone , @Param("pwd") String pwd);

    Integer updatePhone(@Param("beforePhone")String beforePhone,@Param("nowPhone") String nowPhone);

}
